package com.example.stock.controller;

import com.example.stock.entity.eo.CreateEo;
import com.example.stock.entity.eo.RuleEo;
import com.example.stock.entity.eo.UnitEo;
import com.example.stock.service.ICreateService;
import com.example.stock.vo.HistoryUpdateForm;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.*;
import java.util.stream.Collectors;

@RestController
@RequestMapping("/create")
@Slf4j
public class CreateController {

    @Resource
    private ICreateService createService;

    @GetMapping("list")
    public List<CreateEo> list() {
        return createService.list();
    }

}
